****JEPP_RR_APPENDIX TESTS****




//Summary stat//
logit immdum GL gender agea agesq i.education i.employ incomenew i.parents i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)


sum2docx euview immigrationview immcul poordum diffdum samedum GL gender agea education employ incomenew parents econview swd struggling lrscale religious year if e(sample) using summstats.docx, replace obs mean sd min max

  


///ALTERNATIVE MODELS FOR TABLE 1 ///


**ORDINAL**


**EU MODELS
ologit euview GL gender agea agesq i.education i.employ incomenew  i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) replace drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit  euview GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit  euview GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit  euview GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious c.country_euview i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)


**Imm1 models
ologit immigrationview GL gender agea agesq i.education i.employ incomenew  i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit immigrationview GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit immigrationview GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit immigrationview GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious c.country_mulcul i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)


**Imm2 models
ologit immcul GL gender agea agesq i.education i.employ incomenew  i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit immcul GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit immcul GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

ologit immcul GL gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious c.country_mulcul i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_ordinal.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)



***DICHOTOMOUS***

**EU MODELS
logit euviewdum GL gender agea agesq i.education i.employ incomenew i.parents i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) replace drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit euviewdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit euviewdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit euviewdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.country_euview i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)


**Imm1 models
logit immdum GL gender agea agesq i.education i.employ incomenew i.parents i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit immdum GL gender agea agesq i.education i.employ incomenew econview swd  i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit immdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit immdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.country_mulcul i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)


**Imm2 models
logit immculdum GL gender agea agesq i.education i.employ incomenew i.parents i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit immculdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)
logit immculdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FEs, Yes)
logit immculdum GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.country_mulcul i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_binary.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FEs, Yes)


///Using immigration instead of asylum arrivals//
reg euview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.immlog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_altimm.doc, dec(2) replace drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.immlog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_altimm.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)


reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.immlog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using table1_RR_altimm.doc, dec(2) append drop(i.cntryID i.year) addtext(Country FE, Yes, Year FE, Yes)




***REGRESSION OUTPUT FOR INTERACTIONS***
reg euview i.GL##c.incomenew gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output.doc, dec(2) replace drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)

reg immigrationview i.GL##c.incomenew gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)

reg immcul i.GL##c.incomenew gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)


logit poordum i.GL##c.incomenew gender agea i.employ i.education econview swd i.parents i.struggling c.lrscale c.religious assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)


logit diffdum i.GL##c.incomenew gender agea i.employ i.education econview swd i.parents i.struggling c.lrscale c.religious assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)


logit samedum i.GL##c.incomenew gender agea i.employ i.education econview swd i.parents i.struggling c.lrscale c.religious assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)



//REGRESSION OUTPUT FOR FIGURE 5//

logit diffdum GL##c.assylog_lag gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output2.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)

logit diffdum GL##c.country_mulcul gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output2.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)

logit diffdum GL##c.immlog_lag gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
outreg2 using interaction_output2.doc, dec(2) append drop(i.cntryID i.year) addtext(Individual controls, Yes, Country FE, Yes, Year FE, Yes)


***Comparing effects pre and post migrant crisis***

gen migrant=0
replace migrant=1 if year>=2015


//Immigration general//
reg immigrationview i.GL##i.migrant gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID c.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(migrant=(0 1)) post
estimates store mig1


reg immcul i.GL##i.migrant gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID c.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(migrant=(0 1)) post
estimates store mig2

coefplot mig1 mig2, ci(95 90) vertical yline(0, lpattern(dash) lcolor(midblue))mlabel format(%9.2g) mlabposition(2) mlabgap(*2) mlabcolor(orange) msymbol(circle) msize(medium) mcolor(orange) ciopts(recast(. rcap) color(orange))

//Immigration specific//
logit diffdum i.GL##i.migrant gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID c.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(migrant=(0 1)) post
estimates store mig1

logit samedum i.GL##i.migrant gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID c.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(migrant=(0 1)) post
estimates store mig2


logit poordum i.GL##i.migrant gender agea agesq i.education i.employ incomenew econview swd i.parents i.struggling c.lrscale c.religious i.cntryID c.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(migrant=(0 1)) post
estimates store mig3

coefplot mig1 mig2 mig3, ci(95 90) vertical yline(0, lpattern(dash) lcolor(midblue)) rescale(100) mlabel format(%9.2g) mlabposition(2) mlabgap(*2) mlabcolor(purple) msymbol(circle) msize(medium) mcolor(purple) ciopts(recast(. rcap) color(purple))






****Using struggling status as a substitute for income***


reg euview i.GL##i.struggling  c.incomenew gender agea agesq i.education i.employ incomenew econview swd i.parents c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 & cntryID!=24 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(struggling=(0 1))
marginsplot, recast(scatter) yline(0) addplot(histogram struggling if e(sample), discrete percent yaxis(2) yscale(alt) fcolor(%10) lc(navy%30))

graph save marg4.gph, replace

reg immigrationview i.GL##i.struggling  c.incomenew gender agea agesq i.education i.employ incomenew econview swd i.parents c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(struggling=(0 1))
marginsplot, recast(scatter) yline(0) addplot(histogram struggling if e(sample), discrete percent yaxis(2) yscale(alt) fcolor(%10) lc(navy%30))

graph save marg5.gph, replace

reg immcul i.GL##i.struggling c.incomenew gender agea agesq i.education i.employ incomenew econview swd i.parents c.lrscale c.religious i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(struggling=(0 1))
marginsplot, recast(scatter) yline(0) addplot(histogram struggling if e(sample), discrete percent yaxis(2) yscale(alt) fcolor(%10) lc(navy%30))

graph save marg6.gph, replace

graph combine marg4.gph marg5.gph marg6.gph, xcommon ycommon col(1)




//Hetero types


// poor
logit poordum i.GL##i.struggling c.incomenew gender agea i.employ i.education econview swd i.parents c.lrscale c.religious assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(struggling=(0 1))
marginsplot, recast(scatter) yline(0, lpattern(dash) lcolor(midblue)) addplot(histogram struggling if e(sample), discrete percent yaxis(2) yscale(alt) fcolor(%10) lc(navy%30))

graph save poor.gph, replace


// diff
logit diffdum i.GL##i.struggling c.incomenew gender agea i.employ i.education econview swd i.parents c.lrscale c.religious assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(struggling=(0 1))
marginsplot,recast(scatter) yline(0, lpattern(dash) lcolor(midblue)) addplot(histogram struggling if e(sample), discrete percent yaxis(2) yscale(alt) fcolor(%10) lc(navy%30))

graph save diff.gph, replace


// same
logit samedum i.GL##i.struggling c.incomenew gender agea i.employ i.education econview swd i.parents c.lrscale c.religious assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
margins, dydx(GL) at(struggling=(0 1))
marginsplot, recast(scatter) yline(0, lpattern(dash) lcolor(midblue)) addplot(histogram struggling if e(sample), discrete percent yaxis(2) yscale(alt) fcolor(%10) lc(navy%30))

graph save same.gph, replace

graph combine poor.gph diff.gph same.gph, xcommon ycommon col(1)




//JACK KNIFE test


reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
estimates store full

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=2 [pw=weight], robust cluster(cntry)
estimates store noBE

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 [pw=weight], robust cluster(cntry)
estimates store noCH

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=7 [pw=weight], robust cluster(cntry)
estimates store noDE

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=10 [pw=weight], robust cluster(cntry)
estimates store noES

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=11 [pw=weight], robust cluster(cntry)
estimates store noFI

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=12 [pw=weight], robust cluster(cntry)
estimates store noFR

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=13 [pw=weight], robust cluster(cntry)
estimates store noGB

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=17 [pw=weight], robust cluster(cntry)
estimates store noIE

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=23 [pw=weight], robust cluster(cntry)
estimates store noNL

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=24 [pw=weight], robust cluster(cntry)
estimates store noNO

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=26 [pw=weight], robust cluster(cntry)
estimates store noPT

reg immcul GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=28 [pw=weight], robust cluster(cntry)
estimates store noSE

coefplot full noBE noCH noDE noES noFI noFR noGB noIE noNL noNO noPT noSE, keep(GL) vertical yline(0, lpattern(dash) lcolor(navy)) ci(95 90) ylabel(-.1(.1).7) yscale(range(-.1(.1).7)) mlabel format(%9.2g) mlabposition(2) mlabgap(*2) msize(medium) ciopts(recast(. rcap))



reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
estimates store full2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=2 [pw=weight], robust cluster(cntry)
estimates store noBE2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 [pw=weight], robust cluster(cntry)
estimates store noCH2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=7 [pw=weight], robust cluster(cntry)
estimates store noDE2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=10 [pw=weight], robust cluster(cntry)
estimates store noES2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=11 [pw=weight], robust cluster(cntry)
estimates store noFI2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=12 [pw=weight], robust cluster(cntry)
estimates store noFR2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=13 [pw=weight], robust cluster(cntry)
estimates store noGB2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=17 [pw=weight], robust cluster(cntry)
estimates store noIE2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=23 [pw=weight], robust cluster(cntry)
estimates store noNL2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=24 [pw=weight], robust cluster(cntry)
estimates store noNO2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=26 [pw=weight], robust cluster(cntry)
estimates store noPT2

reg immigrationview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=28 [pw=weight], robust cluster(cntry)
estimates store noSE2

coefplot full2 noBE2 noCH2 noDE2 noES2 noFI2 noFR2 noGB2 noIE2 noNL2 noNO2 noPT2 noSE2, keep(GL) vertical yline(0, lpattern(dash) lcolor(navy)) ci(95 90) ylabel(-.1(.1).7) yscale(range(-.1(.1).7)) mlabel format(%9.2g) mlabposition(2) mlabgap(*2) msize(medium) ciopts(recast(. rcap))
graph save jackknife2.gph, replace

reg euview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 [pw=weight], robust cluster(cntry)
estimates store full3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=2 [pw=weight], robust cluster(cntry)
estimates store noBE3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=4 [pw=weight], robust cluster(cntry)
estimates store noCH3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=7 [pw=weight], robust cluster(cntry)
estimates store noDE3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=10 [pw=weight], robust cluster(cntry)
estimates store noES3

reg euview GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=11 [pw=weight], robust cluster(cntry)
estimates store noFI3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=12 [pw=weight], robust cluster(cntry)
estimates store noFR3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=13 [pw=weight], robust cluster(cntry)
estimates store noGB3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=17 [pw=weight], robust cluster(cntry)
estimates store noIE3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=23 [pw=weight], robust cluster(cntry)
estimates store noNL3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=24 [pw=weight], robust cluster(cntry)
estimates store noNO3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=26 [pw=weight], robust cluster(cntry)
estimates store noPT3

reg euview  GL gender agea agesq i.education i.employ incomenew i.parents econview swd i.struggling c.lrscale c.religious c.assylog_lag i.cntryID i.year if fulldata==1 & partner==1 & cntryID!=28 [pw=weight], robust cluster(cntry)
estimates store noSE3

coefplot full3 noBE3 noCH3 noDE3 noES3 noFI3 noFR3 noGB3 noIE3 noNL3 noNO3 noPT3 noSE3, keep(GL) vertical yline(0, lpattern(dash) lcolor(navy)) ci(95 90) ylabel(-.1(.1).7) yscale(range(-.1(.1).7)) legend(rows(4)) mlabel format(%9.2g) mlabposition(2) mlabgap(*2) msize(medium) ciopts(recast(. rcap))
graph save jackknife3.gph, replace


grc1leg jacknife1.gph jackknife2.gph jackknife3.gph, legendfrom(jackknife3.gph) col(1)

